package cn.yunbamboos.media.hook.in;

import java.util.Optional;

public class ServerKeepaliveHookInDTO extends GenericHookInDTO {

    private String mediaServerId;

    public ServerKeepaliveHookInDTO(String body) {
        super(body);
    }

    public void decode() {
        this.mediaServerId = this.body.getString("mediaServerId");
    }

    public Optional<String> getMediaServerId() {
        return Optional.ofNullable(mediaServerId);
    }

}
